package com.yanqu.road.server.cmd.activity.union;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.ChannelTonBingProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.server.protocol.ChannelProtocol;
import com.yanqu.road.server.protocol.CrossProtocol;
import com.yanqu.road.utils.YanQuMessageUtils;

@Cmd(code = CrossProtocol.C2_CHANNEL_ACTIVITY_GET_UNION_REQ_BACK, desc = "")
public class Cross3UpdateUnionReqBackCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        ChannelTonBingProto.ChannelGetUnionUpdateRespMsg reqMsg = ChannelTonBingProto.ChannelGetUnionUpdateRespMsg.parseFrom(packet.getBytes());
        MessageHelper.sendChannelServer(YanQuMessageUtils.buildMessage(ChannelProtocol.N_ACTIVITY_GET_UNION_UPDATE_RESP, reqMsg));
    }

    @Override
    public void sendData() {

    }

}
